package com.pnemec.swing;

import java.awt.Image;
import java.awt.Insets;

import javax.swing.*;

import com.pnemec.addlog.LogModule;
import com.pnemec.util.DataProvider;

public class InfoJB extends JButton {
	private LogModule module=null;
	public InfoJB(LogModule module){
		super();
		this.module=module;
		
		Icon i = module.getIcon();
		if(i!=null)this.setIcon(i);
		else this.setName("I");
		
		this.setBorderPainted(false);
		this.setMargin(new Insets(0,5,0,5	));
		this.setContentAreaFilled(false);
		this.setFocusPainted(false);
		
	}
	public LogModule getModule() {
		return module;
	}
}
